package com.mantbox.channelcall.dao;


import com.mantbox.channelcall.entity.UrlLink;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
*@author Administrator
*@since 2024/09/24
*/
@Mapper
public interface UrlLinkMapper {
    int insert(UrlLink record);

    int insertSelective(UrlLink record);

    UrlLink selectByPrimaryKey(Integer id);

    List<UrlLink> selectIdByUrl(@Param("url") String url);

    List<UrlLink> selectEnableRecord(@Param("useable") Integer useable);

    /*分页查询列表*/
    List<UrlLink> pageList(@Param("useable") Integer useable,@Param("groupId") Integer groupId,@Param("keyword") String keyword);

    int updateByPrimaryKeySelective(UrlLink record);

    int updateByPrimaryKey(UrlLink record);

    int batchUpdateUrlStatus(@Param("list") List<UrlLink> list);

    /*重置点击数为0*/
    int resetClick();

}